package id.mankel.commons.security.shiro;

import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.web.filter.PathMatchingFilter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

@Slf4j
public class CustomFilter extends PathMatchingFilter {

    @Override
    protected boolean isEnabled(ServletRequest request, ServletResponse response, String path, Object mappedValue) throws Exception {
        log.debug("Shiro Filter - Custom - Watching: {}, {}", path, mappedValue);
        return super.isEnabled(request, response, path, mappedValue);
    }

}
